import 'package:provider/provider.dart';
import 'package:provider/single_child_widget.dart';
import 'package:uikit/theme/riki_theme.dart';

import '../pages/login_register/view_model/login_view_model.dart';
import '../pages/login_register/view_model/register_view_model.dart';

List<SingleChildWidget> providers = <SingleChildWidget>[
  ...independentServices,
];

/// 应用级 独立 model(通过consumer 可以在任意页面获取到)
List<SingleChildWidget> independentServices = <SingleChildWidget>[
  // 注册ui主题
  ChangeNotifierProvider<RikiThemeNotifier>(create: (_) => RikiThemeNotifier()),
  // ChangeNotifierProvider<RegisterViewModel>(create: (_) => RegisterViewModel()),
  // ChangeNotifierProvider<LoginViewModel>(create: (_) => LoginViewModel()),
];
